﻿using System;
using System.Collections.Generic;
using System.Text;

namespace BaseClient
{
    /// <summary>
    /// 网络验证客户端需要实现的接口
    /// </summary>
    public interface IValidateReg
    {
        /// <summary>
        /// WS需要访问的Url
        /// </summary>
        string Url { get; set; }

        /// <summary>
        /// 获取新版本下载地址，返回下载地址或抛异常
        /// </summary>
        /// <returns>新版本下载地址</returns>
        string GetNewVersionUrl(string clientInfo);
        /// <summary>
        /// 创建试用帐户，返回注册码或抛异常
        /// </summary>
        /// <returns></returns>
        string TrialAccount(string clientInfo);
        /// <summary>
        /// 验证帐户信息，失败抛异常
        /// </summary>
        string ValidateAccount(string clientInfo);
        /// <summary>
        /// 检查帐户信息，并返回工具运行时需要的信息
        /// </summary>
        /// <returns></returns>
        string GetInfo(string clientInfo);
    }
}
